/* @(#)GSLoginAction.java    
*
* Project: BUS
*
* Modify Information:
* =============================================================================
*   Author       Date       Description
*   ------------ ---------- ---------------------------------------------------
*   Simonyi Peng 2006-2-7    建立
*
* Copyright Notice:
* =============================================================================
*    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
*        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
*        Haidian District, Beijing ,100081, China All rights reserved.
*
*    This software is the confidential and proprietary information of
*        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
*        You shall not disclose such Confidential Information and shall use it
*        only in accordance with the terms of the license agreement you entered
*        into with HiTRUST.
*
* Warning:
* =============================================================================
* 
*/
package com.hitrust.gs.action.report;

import java.util.ArrayList;
import com.hitrust.gs.bean.GSOperatorBean;
import com.hitrust.gs.bean.GSOrderBean;
import com.hitrust.gs.business.GSOrgProcessor;
import com.hitrust.gs.business.GSOrderProcesser;
import com.hitrust.gs.business.GSOrderProcessor;
import com.hitrust.gs.business.report.GSOrderQuery;
import com.hitrust.gs.lib.GSBaseConstants;
import com.hitrust.gs.service.GSBaseAction;
import com.hitrust.gs.service.GSBaseForm;
import com.hitrust.gs.service.GSBaseManager;
import com.hitrust.gs.util.exception.*;
import com.hitrust.gs.util.lang.StringUtils;
import com.hitrust.gs.util.page.ResultProcess;
import com.hitrust.gs.vo.GSOrderSubmitVO;
import com.hitrust.gs.vo.GSOrderVO;


public class GSNaturalOrderDetailAction extends GSBaseAction {
	public String execute(GSBaseForm aForm) throws GSException {
	    
	    GSOperatorBean operatorBean = (GSOperatorBean)aForm.getSession().getAttribute(GSBaseConstants.LOGIN);
	    GSOrderQuery ordq = new GSOrderQuery();
	    GSOrderProcessor ordp = new GSOrderProcessor();
	    String orderId = aForm.getRequest().getParameter("orderId");

        try{
            GSOrderBean orderBean = ordp.selectOrderByCode(orderId);
		    aForm.getRequest().setAttribute("orderbean",orderBean);
            ArrayList ary = ordq.getOrderDetail(orderId);		    
		    aForm.getRequest().setAttribute("detaillist",ary);         

            
        }catch(GSException e){
            aForm.getRequest().setAttribute("action", "A300101.do");
            throw e;
        }
        
        return GSBaseConstants.FORWARD_SUCCESS;
        
	}
}
